package com.xinyue.user.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinyue.user.dao.IdentificationMapper;
import com.xinyue.user.pojo.Identification;
import com.xinyue.user.service.IdentificationService;
@Service("identificationService")
public class IdentificationServiceImpl implements IdentificationService {
	@Autowired
	private  IdentificationMapper identificationMapper;
	@Override
	public int deleteByPrimaryKey(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return identificationMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Identification record) throws Exception {
		// TODO Auto-generated method stub
		return identificationMapper.insert(record);
	}

	@Override
	public Identification selectByPrimaryKey(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return identificationMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Identification> selectAll() throws Exception {
		// TODO Auto-generated method stub
		return identificationMapper.selectAll();
	}

	@Override
	public int updateByPrimaryKey(Identification record) throws Exception {
		// TODO Auto-generated method stub
		return identificationMapper.updateByPrimaryKey(record);
	}

	@Override
	public Identification selectByUid(Integer uid) throws Exception {
		return identificationMapper.selectByUid(uid);
	}

	@Override
	public int deleteByUid(Integer uid) throws Exception {
		return identificationMapper.deleteByUid(uid);
	}
	
}
